<template>
      <div>

         <h3>provide 和inject</h3>
         <Children5></Children5>
   

         

      </div>
</template>

<script>

import Children5 from './components/Children5.vue'
export default {
    data(){
        return{
            list:[]
        }
    },
    provide(){ //提供数据 =》data
        return{
            num:100,
            msg:'你好同学'
        }
    },
    created(){
     
    },
  components:{
    Children5

  }
}
</script>

<style>

</style>